<?php

class Elem_ppt_model extends Onecore_Model
{

    public function __construct()
    {
        parent::__construct();
        $this->_name = "elem_presentations";
        $this->_id = array("id");
        $this->_fields = array("id","name","description","objects_id","type_objects_id");
        $this->_fieldsConditions = array("ModuloId"=>"where","name"=>"like","description"=>"like");
        $this->_itemName = "tbl_modulos";
        $this->_validations = array(
            array(
                "field"=>"name",
                "label"=>"name",
                "rules"=>"required"
            ),
            array(
                "field"=>"objects_id",
                "label"=>"Identificador de Objeto",
                "rules"=>"required"
            )        
            ,
            array(
                "field"=>"type_objects_id",
                "label"=>"Identificador de Tipo de Objeto",
                "rules"=>"required"
            )        
        );
    }   
}